Skip to main content

Create User

AutomatR.AWS.Activities.CreateUser

The "Create User" activity in AutomatR is part of the AWS IAM (Identity and Access Management) activities package, allowing automation processes to create a new IAM user within Amazon Web Services (AWS). This activity streamlines the user creation process, enhancing the efficiency of automation workflows.

Properties

NameDescription
Input
Access Key IDProvides the encrypted access key ID for your AWS account, enabling connection to the AWS IAM service. String variables containing the access key ID.
Secret Access KeyProvides the encrypted secret access key for your AWS account, enabling connection to the AWS IAM service. String variables containing the secret access key.
RegionSpecifies the AWS region where you want to create the new IAM user. Use the RegionEndpoint enumeration to set the region.
NameSpecifies a unique name for the new IAM user. String variables containing the user name.
PasswordSpecifies the desired password for the newly created IAM user. String variables containing the password.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Create User" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the wait time is 1000 milliseconds or 1 sec, i.e., 1.
PathSpecifies the desired path for the IAM user. If no path is set, it will be assigned the default path. String variables containing the desired path.
TagsSpecifies the tags that need to be added or updated. It will be stored in the form of a "Dictionary<String,String>" variable.
Permissions Boundary ARNProvides the Amazon Resource Name (ARN) of the policy to use as the permissions boundary for the IAM user.
Force Password ChangeEnabling this option requires the user to change their password during their next login. Boolean variables containing the option status.
Generate AWS Access KeysEnabling this option allows generating AWS Secret Access Keys ID and AWS Access Key Id for the newly created user. Boolean variables containing the option status.
Output
UserStores the result in a String variable format that can be used for further processing, giving the User Name for the created user.
AWS Access Key IDStores the result in a String variable format that can be used for further processing in the form of AWS Access Key for the created user.
AWS Secret Access KeyStores the result in a String variable format that can be used for further processing in the form of AWS Secret Access Key for the created user.

How to use:

  1. Drag and drop the "Create User" activity onto the workflow.
  2. Configure the properties by providing the required inputs, such as access key ID, secret access key, region, user name, password, and optionally, additional settings.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to create a new IAM user within AWS.

Example: Consider an example where the "Create User" activity is used to create a new IAM user named "JohnDoe" with a specified password and generate AWS access keys:

Create User:
Display Name: "Create JohnDoe User"
Access Key ID: "**************"
Secret Access Key: "**************"
Region: "us-east-1"
Name: "JohnDoe"
Password: "SecurePassword123"
Generate AWS Access Keys: true
User: createdUser
AWS Access Key ID: accessKeyId
AWS Secret Access Key: secretAccessKey

In this example, the activity attempts to create a new IAM user named "JohnDoe" in the "us-east-1" region with the specified password. It also generates AWS access keys, and the results are stored in the variables "createdUser," "accessKeyId," and "secretAccessKey" for further handling in the workflow.